import { defineStore } from 'pinia'
import { ref } from 'vue'

export var useTokenStore = defineStore('token',()=>{
    //定义响应式数据
    var token = ref('');

    //定义方法, 保存token
    var saveToken = (payload)=>{
        token.value = payload;
    }
    return {
        token,
        saveToken
    }
})